package store.lunangangster.nodeflow.config;

import java.time.Duration;
import java.util.List;

/**
 * NodeFlow配置类
 *
 * @author cwk
 * @version 1.0
 */
public class NodeFlowConfig {

	// 在程序启动时就解析配置文件
	private Boolean parseOnStart;
	// 规则文件的配置路径
	private List<String> sourcePath;
	// 初始SLOTS槽大小
	private Integer slotsSize;
	// 并行编排最小线程数
	private Integer minActive;
	// 并行编排最大线程数
	private Integer maxActive;
	// 线程闲置时最大存活时间
	private Duration keepAliveTime;

	public Boolean getParseOnStart() {
		return parseOnStart;
	}

	public void setParseOnStart(Boolean parseOnStart) {
		this.parseOnStart = parseOnStart;
	}

	public List<String> getSourcePath() {
		return sourcePath;
	}

	public void setSourcePath(List<String> sourcePath) {
		this.sourcePath = sourcePath;
	}

	public Integer getSlotsSize() {
		return slotsSize;
	}

	public void setSlotsSize(Integer slotsSize) {
		this.slotsSize = slotsSize;
	}

	public Integer getMinActive() {
		return minActive;
	}

	public void setMinActive(Integer minActive) {
		this.minActive = minActive;
	}

	public Integer getMaxActive() {
		return maxActive;
	}

	public void setMaxActive(Integer maxActive) {
		this.maxActive = maxActive;
	}

	public Duration getKeepAliveTime() {
		return keepAliveTime;
	}

	public void setKeepAliveTime(Duration keepAliveTime) {
		this.keepAliveTime = keepAliveTime;
	}
}
